<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php session_start(); ?>
<title>Evo Slider - Demo - Alternate Layout 5</title>

<!--imports the main css file-->
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="Stylesheet" href="css/evoslider/css/evoslider.css" type="text/css" />
<link rel="Stylesheet" href="css/evoslider/css/demo1/demo.min.css" type="text/css" />

<!--imports jquery-->
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<!--imports twitter feed plugin-->
<script type="text/javascript" src="js/jquery.tweet.js"></script>
<!--imports easing plugin-->
<script type="text/javascript" src="js/easing.js"></script>
<!--imports jQuery Tools plugin-->
<script type="text/javascript" src="js/jquery.tools.min.js"></script>
<script type="text/javascript" src="js/jquery.evoslider-1.0.0.min.js"></script>

<!--imports custom javascript code-->
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="js/custom2.min.js"></script>

<!--[if IE 7]><link href="css/ie7.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->

<meta charset="UTF-8">
</head>

<body>
<?
	global $db,$lg;
	//$lg= 'vn';
	include ('../../includes/config.php');
	define('TPL_DIR', 'templates/site/');
	define('SRC_DIR', 'sources/site/');
	define('CLASS_DIR', 'class/');
	include ("../../includes/constant.php");
	include ("../../includes/functions.php");
	include ("../../includes/va_db.php");
	$id = $_SESSION['id_slider'];
	$sql = "select * from image_post_silder where img_id = ".$id;
	
	//echo $sql;
	$arr = $db->getAll($sql);
	//print_r($arr);
	
?>
<div id="demo5Slider" class="evoslider default"> 
<!-- start evo slider -->  
  <dl>
  	<?
    	for($i = 0; $i < count($arr);$i++)
		{
			$img_name = $arr[$i]['name_'.$lg];
			$img_title = $arr[$i]['title_'.$lg];
			$img_src = $arr[$i]['url'];
			$img_href = $arr[$i]['href_src'];
	?>
    <dt><?=$img_name?></dt>
    <dd data-src="../../<?=$img_src?>" data-text="overlay" 
	                    data-thumb="../../lib/Evo Slider Pro/images/1-thumb.jpg">
      <div class="evoText">
        <h3><?=$img_name?></h3>
        <p><?=$img_title?></p>
      </div>
    </dd>
    <?
    	}
	?>
</div>
</body>
</html>